package com.gxa.meiye.core.pojo.shopManagement;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author cc
 * @PackageName meiye
 * @Package com.gxa.meiye.core.pojo.shopManagement
 * @Date 2022/7/24 9:33
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "OrderManagement对象")
public class OrderManagement implements Serializable {

    @ApiModelProperty("订单编号")
    private String orderNumber;

    @ApiModelProperty("项目名称")
    private String projectName;


    @ApiModelProperty(value = "订单金额",example = "0")
    private BigDecimal getMoney;

    @ApiModelProperty(value = "订单状态  1待支付 2待服务 4已完成 7退款中 8已退款 6已取消")
    private Integer status;

    @ApiModelProperty("客户姓名")
    private String consumerName;

    @ApiModelProperty("联系手机")
    private String phone;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using= LocalDateTimeDeserializer.class)
    private LocalDateTime createdTime;

    private String startTime;

    private String endTime;



}
